<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>VUE模板语法-插值-指令</title>
        <script type="text/javascript" src="https://unpkg.com/vue/dist/vue.js"></script>
    </head>
    <body>
        <div id="app">
            是否插入：<input type="checkbox" v-model="insertMiddleFlag"/><br/>
            <p>头</p>
            <p v-if="insertMiddleFlag">中间</p>
            <p>尾</p>
        </div>
    </body>
    <script type="text/javascript">
        var vueObj = new Vue({
            el: '#app',
            data: {
                insertMiddleFlag: true
            }
        });
    </script>
</html>